package org.xtremeobjects.domain.model.ddd;

import java.util.Collection;
import java.util.List;

public interface GenericRepository<E, PK> extends Repository {

	public List<E> allInstances();
	public E findById(PK anId);

	public void add( E anObject );
	public void add( Collection<E> anObjectCollection );
	
	public void remove( E anObject );
	public void remove( Collection<E> anObjectCollection );
	
	public void update(E anObject);
	public void update( Collection<E> anObjectCollection );
}
